package com.entity;

/**
 * Author: foshou.zhang
 * Date : 2016/3/6 0006
 * Time :下午 4:37
 */
public class ShoppingCat {
    private Integer id;
    private Integer userId;//用户的id
    private Integer bookId;//书籍id
    private String bookName;//书籍名称
    private Double price;//价格
    private Integer number;//数量

    public ShoppingCat() {
    }

    public ShoppingCat(Integer userId, Integer bookId, String bookName, Double price, Integer number) {
        this.userId = userId;
        this.bookId = bookId;
        this.bookName = bookName;
        this.price = price;
        this.number = number;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getBookId() {
        return bookId;
    }

    public void setBookId(Integer bookId) {
        this.bookId = bookId;
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    @Override
    public String toString() {
        return "ShoppingCat{" +
                "id=" + id +
                ", userId=" + userId +
                ", bookId=" + bookId +
                ", bookName='" + bookName + '\'' +
                ", price=" + price +
                ", number=" + number +
                '}';
    }
}
